import request from '@/utils/request'

//更改学校简介
export function updateIntroduction (data) {
  return request({
    url: '/school/introduction',
    method: 'put',
    data
  })
}

//查看学校信息
export function getIntroduction () {
  return request({
    url: '/school/introduction',
    method: 'get',

  })
}

//更新晚餐费用
export function updateDinnerCost(data) {
  return request({
    url: '/school/dinner-cost',
    method: 'put',
    params: data
  })
}

//更新学期
export function updateYearAndCost(data) {
  return request({
    url: '/school/term',
    method: 'put',
    params: data
  })
}
